<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>万座网旅游分销平台-宝贝列表</title>
<link href="../style/frame.css" rel="stylesheet" type="text/css" />
<link href="../style/common2.css" type="text/css" rel="stylesheet" />
<link href="../style/mainStyle.css" type="text/css" rel="stylesheet" />
<script src="../js/jquery-1.5.1.min.js" type="text/javascript"></script>
<script src="../js/common.js" type="text/javascript"></script>
<script src="../js/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
</head>

<body>
<div class="mainbody">	
	<!--子目录导航-->
    <div class="subnav">您当前位置：宝贝预订</div>	
    
    <!--景点搜索-->
    <div class="prod_search">
    	<div class="prod_s_title">景点筛选 <span class="fold" onclick="expand(this)"> </span></div>
        <div class="prod_s_cont" id="pro_search">
        <form name="psearchF" method="get" action="?">
        	<span class="p_s_span">起始日期：</span><input type="text" name="begDate" class="search_bg_time" value="<?php echo empty($begDate) ? 0 : $begDate;?>" onClick="WdatePicker({skin:'whyGreen'})"/> <span class="p_s_span">结束日期：</span><input type="text" name="endDate" class="search_bg_time" onClick="WdatePicker({skin:'whyGreen'})"  value="<?php echo empty($endDate) ? 0 : $endDate;?>"/> <span class="p_s_span">景点名称：</span><input type="text" name="name" class="search_bg_input"  value="<?php echo empty($name) ? '' : $name;?>" style="height:24px; line-height:24px;"/> <input type="submit" value="搜索" class="search_bg_btn" />
        </form>    
        </div>
    </div>
    
    <!--景点列表-->
    <div class="prod_list list">
      <table width="100%" border="0" cellpadding="3" cellspacing="1"  style="margin:0px; border:0px;">
          <col />
          <col width="260" />
          <col width="100" />
          <thead>
              <tr>
                 
                  <td style="text-align:left;">门票名称</td>
                  <td>参考价格</td>
                  <td>操作</td>
                  
              </tr>
          </thead>
      </table>
       <?php
        if($prolist){
          foreach($prolist as $v){
            $ticket=$pro->getTicketLIst($v['Att_id'],
              empty($_GET['name']) ? 0 : $_GET['name'],
              empty($_GET['begDate']) ? 0 : $_GET['begDate'],
              empty($_GET['endDate']) ? 0 : $_GET['endDate']);
      ?>
      <div class="title"><span class="fold" style="left:0px;"></span><h1><?php echo $v['Att_name'];?> (<font class="num_color">
        <?php echo $pro->getTicketNum($v['Att_id'],
          empty($_GET['name']) ? 0 : $_GET['name'],
          empty($_GET['begDate']) ? 0 : $_GET['begDate'],
          empty($_GET['endDate']) ? 0 : $_GET['endDate']);?>
        </font>)</h1>
        <div class="clear"></div></div>   
      <table class="titleTable" width="100%" border="0" cellpadding="3" cellspacing="1" style="margin:0px; border:0px;">
        <col />
        <col width="260" />
        <col width="100" />
          <tbody>  
             <?php 
             	if($ticket){
             		foreach($ticket as $t){
             ?>
              <tr>
                  
                  <td style="text-align:left;">
                  	<div style=" padding:8px 5px;">
                        <p class="t1"><a href="products.php?act=detail&aid=<?php echo $v['Att_id'];?>&id=<?php echo $t['Tkt_id'];?>" ><?php echo $t['Tkt_name'];?></a></p>
                        <p class="t2">已售出 <span class="num_color"><?php echo $t['Tkt_sellnum']?$t['Tkt_sellnum']:0;?></span> 件</p>
                        <p class="t3">预订说明：<?php echo htmlspecialchars_decode($t['Tkt_description1']);?></p>
                    </div>
                  </td>
                  <td>
                  	<p class="t4 t_0">窗口价：<span class="num_color2"><?php echo $t['Tkt_price1'];?></span>元 <sup><img src="<?php echo ADMINI_TPL;?>images/chuang.gif" /></sup></p>
                    <p class="t5 t_0">零售价：<?php echo $t['Tkt_price2'];?>元 <sup><img src="<?php echo ADMINI_TPL;?>images/ling.gif" /></sup></p>
                    <p class="t6 t_0">结算价：<span class="num_color"><?php echo $t['Tkt_price3'];?></span>元 <sup><img src="<?php echo ADMINI_TPL;?>images/jie.gif" /></sup></p>
                  </td>
                  <td><a href="order.php?aid=<?php echo $v['Att_id'];?>&id=<?php echo $t['Tkt_id'];?>"><img src="<?php echo ADMINI_TPL;?>images/submit_btn.png" /></a></td>
              </tr>
              <?php }}else{ ?>
              <tr><td colspan="3" style="text-align:left;"> 该景点暂时门票出售</td></tr>
              <?php }?>
        </tbody>
      </table>
      <?php }}else{?>
      <div style=" height:40px; line-height:40px; text-align:center;">暂无信息</div>
      <?php }?>
	  <div class="page"><?php if($prolist){ echo $page->show(4);}?></div>      
      
    </div>
</div>
<!-- 7caihu.com Baidu tongji analytics -->
<script type="text/javascript">
var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://");

document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3Fb8797ecb21d1ccb839c35b190277a0cd' type='text/javascript'%3E%3C/script%3E"));

</script>
</body>
</html>
